<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>首页</title>
</head>

<body>
<%
    String loginName = (String) request.getSession().getAttribute("loginName");
    String prefix = request.getContextPath();
%>
<%
    if (loginName == null || loginName.isEmpty()) {
%>
<a href="/Login">TO LOGIN</a>
<% } else { %>
Hello, <%=loginName%>
<% } %>
</body>
</html>
